package org.example.campus_sys_backend.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.example.campus_sys_backend.model.CourseInfo;

@Mapper
public interface CourseInfoMapper {
    @Insert("insert into course (course_name, created_time, activity_id, teacher_id, class_id)" +
            " values (#{courseName}, #{createdTime}, #{activityId}, #{teacherId}, #{classId})")
            Integer insertCourse(CourseInfo courseInfo);
}